| API Documentation |  |

- MAIN PAGE
- NAMESPACES
- CLASSES

RenderCommand.h
1 // RenderCommand.h
3 //
5
6 namespace nkGraphics
7 {
11 class RenderCommand final
12 {
13 public :
14
15 // Potential arguments
16 Mesh* _mesh = nullptr ;
17 Shader* _shader = nullptr ;
18
19 Entity* _instance = nullptr ;
20
21 RENDER_COMMAND_TYPE _type = RENDER_COMMAND_TYPE::UNKNOWN ;
22
23 public :
24
25 // Static creation utility
31 static RenderCommand draw () ;
38 static RenderCommand changeShader (Shader* shader) ;
45 static RenderCommand changeMesh (Mesh* mesh) ;
52 static RenderCommand prepareInstance (Entity* entity) ;
53 } ;
54 }
nkGraphics::RENDER_COMMAND_TYPE
RENDER_COMMAND_TYPE
Lists available commands for a RenderStrategy to provide.
Definition: RenderCommandType.h:12
nkGraphics::RenderCommand::_instance
Entity * _instance
If necessary, the instance to work with.
Definition: RenderCommand.h:19
nkGraphics::RenderCommand::_shader
Shader * _shader
If necessary, the shader to work with.
Definition: RenderCommand.h:17
nkGraphics::RenderCommand::changeMesh
static RenderCommand changeMesh(Mesh *mesh)
nkGraphics::Shader
A shader class, feeding data to a Program.
Definition: Shader.h:16
nkGraphics::Entity
An entity in a render queue. It drives the shader and possible graph position for a set of renderable...
Definition: Entity.h:15
nkGraphics::RenderCommand::draw
static RenderCommand draw()
nkGraphics::RenderCommand::_type
RENDER_COMMAND_TYPE _type
Its type.
Definition: RenderCommand.h:21
nkGraphics::RenderCommand::_mesh
Mesh * _mesh
If necessary, the mesh to work with.
Definition: RenderCommand.h:16
nkGraphics::RenderCommand
Describes a render command and provides the necessary information for it to happen.
Definition: RenderCommand.h:12
nkGraphics::RENDER_COMMAND_TYPE::UNKNOWN
@ UNKNOWN
Unknown command.
nkGraphics::RenderCommand::prepareInstance
static RenderCommand prepareInstance(Entity *entity)
nkGraphics::RenderCommand::changeShader
static RenderCommand changeShader(Shader *shader)
nkGraphics
Encompasses all API of component NilkinsGraphics.
Definition: BoundingBox.h:7
nkGraphics::Mesh
Holds information about a mesh. Used as a basis to render 3d models.
Definition: Mesh.h:14